﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace MovieRental.SqlRepositoryLibrary.Converters
{
    public interface ISqlEntityConverter<TEntity, TKey>
    {
        TEntity ConvertFromDataReader(SqlDataReader reader);
        SqlCommand GetInsertCommand(TEntity entity);
        SqlCommand GetUpdateCommand(TEntity entity);
        SqlCommand GetDeleteCommand(TKey id);
        SqlCommand GetReadCommand(TKey id);
        SqlCommand GetReadAllCommand();
    }
}

